package com.evelynlemus;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;
import android.view.WindowManager;


public class Screen1 extends Activity {
	private static final int TIME=5000;
	

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
		
		this.getWindow().setFlags(
				WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		setContentView(R.layout.activity_screen1);
		
		Handler handler=new Handler();
		handler.postDelayed(Iniciar(), TIME);

}
	
	private Runnable Iniciar()
	{
		Runnable res=new Runnable(){
			public void run(){
				Intent intent=new Intent(Screen1.this, Screen2.class);
				startActivity(intent);
				finish();
			}
		};
		return res;
	}
}